package com.itheima.service.impl;


import com.itheima.dao.UserDao;
import com.itheima.dao.impl.UserDaoImpl;
import com.itheima.domain.User;
import com.itheima.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService{
    private UserDaoImpl ud = new UserDaoImpl();



    @Override
    public User login(User user) {
        return ud.login(user);

    }

    @Override
    public List<User> list() {
        return ud.list();
    }

    @Override
    public void addUser(User user) {
        ud.addUser(user);
    }
}
